<template>
	<div>
		<div class="recommend-title">
			周末去哪儿
		</div>
		<ul>
			<li class="item" v-for="(item,index) in list" :key="item.id">
				<div class="item-img-warpper">
					<img class="item-img" :src="item.imgUrl" >
				</div>
				<div class="item-info">
					<p class="item-title">{{item.title}}</p>
					<p class="item-desc">{{item.desc}}</p>
				</div>
			</li>
		</ul>
	</div>
</template>

<script>
export default {
	name: 'HomeWeekend',
	props: {
		list: Array
	}
}
</script>

<style lang="stylus" scoped="">
@import '~styles/varibles'
@import '~styles/mixins'
.recommend-title
	height: .8rem
	line-height: .8rem
	text-indent: .2rem
	background: #eee
	font-size:.32rem
.item-img-warpper
	overflow: hidden
	height: 0
	padding-bottom:37.8%
	.item-img
		width:100% 
.item-info
	padding: .2rem
	.item-title
		font-size: .32rem
		line-height:.5rem
		ellipsis()
	.item-desc
		color: #999
		line-height: .4rem
		ellipsis()
	.item-btn
		background:#ffb91c
		color:#fff
		padding:.06rem .15rem
		border-radius: .04rem
		margin-top: .1rem
</style>